#!/bin/bash
set -e
set -x
MYDIR="${0%/*}"
cd "$MYDIR/.."
source "recipes/common.sh"


# RECIPE START shadow

reset_mtime shadow shadow/configure.ac
mkdir -p build/shadow
cd build/shadow
../../shadow/configure \
	${CONFIGURE_ARGS} \
	--with-group-name-max-length=32 \
	${AUTOCRAP_KLUDGE}

cd ../..
make_build build/shadow
rm -f "$stage/bin/groups"
for prog in su login; do
	mv "$stage/bin/$prog" "$stage/usr/bin"
done
rmdir "$stage/bin"

# RECIPE END shadow
